/*
 *  @taskList: 任务 icon
 *  @showList: Vip未装扮 icon
 *  @getVipShow: Vip装扮 icon
 * */
const taskList = [
  {
    _id: 0,
    icon: require("@/assets/img/play.png"),
  },
  {
    _id: 1,
    icon: require("@/assets/img/task.png"),
  },
  {
    _id: 2,
    icon: require("@/assets/img/share.png"),
  },
  {
    _id: 3,
    icon: require("@/assets/img/write.png"),
  },
];
const showList = [
  {
    _id: 0,
    icon: require("@/assets/img/nightVip.png"),
    tips: "夜晚",
  },
  {
    _id: 1,
    icon: require("@/assets/img/flagVip.png"),
    tips: "国旗",
  },
  {
    _id: 2,
    icon: require("@/assets/img/yanhuaVip.png"),
    tips: "烟花",
  },
  {
    _id: 3,
    icon: require("@/assets/img/capvip.png"),
    tips: "兔子头套",
  },
  {
    _id: 4,
    icon: require("@/assets/img/moomVip.png"),
    tips: "中秋月圆",
  },
];
const getVipShow = [
  {
    _id: 0,
    icon: require("@/assets/img/night.png"),
    tips: "夜晚",
    isActive: false,
    focus: (it) => {
      let that = it;
      that.$store.state.bacIcon = require("@/assets/img/黑夜-默认.png");
    },
    before: (it) => {
      let that = it;
      that.$store.state.bacIcon = require("@/assets/img/白天-默认.png");
    },
  },
  {
    _id: 1,
    icon: require("@/assets/img/flag.png"),
    tips: "国旗",
    isActive: false,
    focus: (it) => {
      let that = it;
      that.$store.state.flagOpen = true;
    },
    before: (it) => {
      let that = it;
      that.$store.state.flagOpen = false;
    },
  },
  {
    _id: 2,
    icon: require("@/assets/img/yanhua.png"),
    tips: "烟花",
    isActive: false,
    focus: (it) => {
      let that = it;
      that.$store.state.yanHuaOpen = true;
    },
    before: (it) => {
      let that = it;
      that.$store.state.yanHuaOpen = false;
    },
  },
  {
    _id: 3,
    icon: require("@/assets/img/cap.png"),
    tips: "兔子头套",
    isActive: false,
  },
  {
    _id: 4,
    icon: require("@/assets/img/moom.png"),
    tips: "中秋月圆",
    isActive: true,
  },
];
/**
 * @param {Arr} arr
 * @param {Arr} diarr
 */
function pandaSty(arr, diarr) {
  arr.map((e, i) => {
    e.isActive = diarr[i].isActive;
  });
  console.log("---", arr);
  return arr;
}

export default {
  taskList,
  showList,
  getVipShow,
  pandaSty,
};
